Revision: tla--devo--1.1--patch-12
Archive: arch@repose.cx--03
Creator: Damien Elmes <resolve@repose.cx>
Date: Tue Jul  1 19:38:00 EST 2003
Standard-date: 2003-07-01 09:38:00 GMT
Summary: reduce default verbosity of what-changed, add --verbose
Keywords: 
New-files: 
New-directories: 
Removed-files: 
Removed-directories: 
Renamed-files: 
Renamed-directories: 
Modified-files: ./libarch/changeset-report.c
    ./libarch/cmd-what-changed.c
Modified-directories: 
New-patches: arch@repose.cx--03/tla--devo--1.1--patch-12
Removed-patches: 

This patch "reverses" the verbosity of what-changed - by default, only the
"progress" messages are displayed.

An extra option --verbose has been added to control verbosity. --quiet has
been kept, to suppress the status messages in the case where you're doing a
--diffs or --verbose, but it makes no sense alone, so it will error:

mobile% tla what-changed -q               
what-changed: can't be quiet without --verbose or --diffs
usage: tla what-changed [options] [revision]
try what-changed --help

The default behaviour now is:

mobile% tla what-changed   
-- ./emacs-wiki.el
M  ./emacs-wiki.el

With verbosity:

mobile% tla what-changed -v
-- ./emacs-wiki.el
M  ./emacs-wiki.el

* file metadata changed

    ./emacs-wiki.el

* modified files

    ./emacs-wiki.el

With quiet & verbosity (seems unintuitive - perhaps quiet could be renamed to
nostatus?)

mobile% tla what-changed -vq
* file metadata changed

    ./emacs-wiki.el

* modified files

    ./emacs-wiki.el

With just --diffs, the other parts of the report won't be displayed unless
you also add --verbose, which narrows down relevant information a bit more.

To implement this, I refactored some of the diffing code in
changeset-report.c into separate functions. There's a new user-visible
function:

arch_print_changeset_diffs (int out_fd, struct arch_changeset_report * report)

This shares some support functions with arch_print_changeset - the support
functions have been made static.
